<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>发布拍品</title>
<link rel="stylesheet" href="<?php echo TEMPLATE_SITE_URL;?>/css/style.css" type="text/css">
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/zepto.js" charset="utf-8"></script>
</head>
<body>
<div id="section_login">
<section>
<header>
	<div class="header-box">
		<a id="J_cancel" href="javascript:history.go(-1);" class="new-btn new-btn-orange new-btn-back">
        	<b class="caret"></b>返回
		</a>发布拍品
	</div>
</header>
	<!--登录-->
	<div id="dp_banner"></div>
	<form id="J_login_form">
		<div class="login-frame verification-login">
			<ul>
				<li>
					<p class="input-box">
						<label for="yikoujia">一口价</label>
						<input name="yikoujia" class="default" type="number" id="yikoujia" value="<?php echo $output['auction']['yikoujia'];?>">
					</p>
				</li>
				
				<li>
					<p class="input-box">
						<label for="cankaojia">参考价</label>
						<input name="cankaojia" class="default" placeholder="参考价" type="number" id="cankaojia" value="<?php echo $output['auction']['cankaojia'];?>">
					</p>
				</li>
			</ul>
			<p id="account_err" class="err-holder"></p>
			<div class="login-btn">
				<input type="hidden" name="auction_id" value="<?php echo $output['auction']['id'];?>" id="auction_id">
				<input id="J_submit" value="下一步" class="icon-btn b-2 margin-lt-2" type="button">
			</div>
		</div>
	</form>
</section>
<script type="text/javascript">
$(function(){
	$('#J_submit').click(function(){
		var yikoujia = $('#yikoujia').val();
		var cankaojia = $('#cankaojia').val();
		var auction_id = $('#auction_id').val();
		
		$.ajax({
			type:'post',
			url:'index.php?act=publish&op=publishAuction',
			dataType:'json',
			data:{yikoujia:yikoujia,cankaojia:cankaojia,auction_id:auction_id},
			success:function(data){
				if(data.state){z
					location.href = 'index.php?act=publish&op=step2&auction_id='+auction_id;
				}
				return false;
			}
		});	
	});

});
</script>
</div>
</body>
</html>